<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="shortcut icon" href="favicon.ico" />
<link href="user/css/UserCenter.css?v=<?=WEB_VERSION?>" rel="stylesheet" type="text/css" />
<script src="user/js/jquery-1.7.1.min.js?v=<?=WEB_VERSION?>" type="text/javascript" language="javascript"></script>
<script src="user/js/UserWin.min.js?v=<?=WEB_VERSION?>" type="text/javascript" language="javascript"></script>
<title>100课堂英语学习会员中心</title>
</head>
<body>
<?include('userTop.php')?>
<div class="CenterAuto">
	<?
    include('userLeft.php')
    ?>
    <?
    $tpage= $_GET['tpage'];
    $opage= $_GET['opage'];
    $cpage= $_GET['cpage'];    
    $page_flg = 1;
    if(isset($tpage)&&$tpage>0){
    	$page_flg = 2;
    }
    if(isset($opage)&&$opage>0){
    	$page_flg = 3;
    }
    if(isset($cpage)&&$cpage>0){
    	$page_flg = 4;
    }    
    ?>
    <div class="CenterRight">
		<?
	    include('userMenu.php')
	    ?>
	    <script>
    $(function(){
      if (<?echo $page_flg;?> == 1) {
      	
      	$(".PublicTwoR li").removeClass("hovs");
      	$($(".PublicTwoR li")[0]).addClass("hovs");
      };
    })
    </script>
    	<?if($page_flg==2){?>
    	   <div class="PublicPages"><?echo $ticket['page']?></div>
    	 <table width="770" border="0" cellspacing="2" cellpadding="0">
		    <tr>
		      <td height="30" align="center" valign="middle" bgcolor="#0D6DB7" class="ColorFFF">序列号</td>
		      <td height="30" align="center" valign="middle" bgcolor="#0D6DB7" class="ColorFFF">代金券金额</td>
		      <td height="30" align="center" valign="middle" bgcolor="#0D6DB7" class="ColorFFF">有效期(天)</td>
		      <td height="30" align="center" valign="middle" bgcolor="#0D6DB7" class="ColorFFF">是否可用</td>
		    </tr>
	        <?
            if(isset($ticket['list'])){
            foreach($ticket['list'] as $v){
			?>
		    <tr>
		      <td height="30" align="center" valign="middle" bgcolor="#E7E7E7"><?=$v['number']?></td>
		      <td height="30" align="center" valign="middle" bgcolor="#E7E7E7"><?=$v['price']?>元</td>
		      <td height="30" align="center" valign="middle" bgcolor="#E7E7E7">截止<?=date('Y年m月d日',$v['valid_end_time'])?>过期</td>
		      <td height="30" align="center" valign="middle" bgcolor="#E7E7E7"><?=$v['status']?></td>
		    </tr>
		     <?
			}}
			?>
    	 </table>
    	    <div class="PublicPages"><?echo $ticket['page']?></div>
    	 <?}?>
    	<?if($page_flg==3){?>
    	  <div class="PublicPages"><?echo $order['page']?></div>
    	<table width="770" border="0" cellspacing="2" cellpadding="0">
	    <tr>
	      <td height="30" align="center" valign="middle" bgcolor="#0D6DB7" class="ColorFFF">订单号</td>
	      <td height="30" align="center" valign="middle" bgcolor="#0D6DB7" class="ColorFFF">订单课时</td>
	      <td height="30" align="center" valign="middle" bgcolor="#0D6DB7" class="ColorFFF">订单总金额</td>
	      <td height="30" align="center" valign="middle" bgcolor="#0D6DB7" class="ColorFFF">折扣金额</td>
	      <td height="30" align="center" valign="middle" bgcolor="#0D6DB7" class="ColorFFF">代金券金额</td>
	      <td height="30" align="center" valign="middle" bgcolor="#0D6DB7" class="ColorFFF">应付金额</td>
	      <td height="30" align="center" valign="middle" bgcolor="#0D6DB7" class="ColorFFF">支付时间</td>
	      <td height="30" align="center" valign="middle" bgcolor="#0D6DB7" class="ColorFFF">支付方式</td>
	      <td height="30" align="center" valign="middle" bgcolor="#0D6DB7" class="ColorFFF">支付情况</td>
	    </tr>
       <?
          if(isset($order['list'])){
          foreach ($order['list'] as $v){
		  ?>	    
	    <tr>
	      <td height="30" align="center" valign="middle" bgcolor="#E7E7E7"><?=$v['order_no']?></td>
	      <td height="30" align="center" valign="middle" bgcolor="#E7E7E7">
	      <?
			$tmp = array();
			foreach($v['product_id'] as $v1){
				$tmp[] = $product[$v1];
			}
			echo  implode('<br/>',$tmp);
		  ?>
	      </td>
	      <td height="30" align="center" valign="middle" bgcolor="#E7E7E7">￥<?=$v['order_amount']?></td>
	      <td height="30" align="center" valign="middle" bgcolor="#E7E7E7">￥<?=$v['discount_money']?></td>
	      <td height="30" align="center" valign="middle" bgcolor="#E7E7E7">￥<?=$v['ticket_money']?></td>
	      <td height="30" align="center" valign="middle" bgcolor="#E7E7E7">￥<?=$v['order_amount']-$v['discount_money']-$v['ticket_money']?></td>
	      <td height="30" align="center" valign="middle" bgcolor="#E7E7E7"><?=$v['pay_time']?></td>
	      <td height="30" align="center" valign="middle" bgcolor="#E7E7E7"><?=$v['pay_type_name']?></td>
	      <td height="30" align="center" valign="middle" bgcolor="#E7E7E7">
	      		  <?
          if ($v['pay_status']==PAY_STATUS_1){
		  ?>
          <a href="user_payready.htm?orderId=<?=$v['id']?>">
          
          <?
		  }
		  echo  $payStatus[$v['pay_status']];
          if ($v['pay_status']==PAY_STATUS_1){?>
          	</a>
          <?
		  }
		  ?>
	      </td>
	    </tr>
          <?
		  }}
		  ?>	    
	  </table>
        <div class="PublicPages"><?echo $order['page']?></div>
      <?}?>	 
      <?if($page_flg==4||$page_flg==1){?>
      <p style="text-indent:2em; padding:15px; font-size:14px; line-height:24px; color:#666;">温馨提示：在线充值分为充值卡充值和现金充值两种方式。必须按照网站指定方式和汇款账号操作。其他地方都可能存在安全隐患。为了您的资金安全，请与我们的客服保持联系。谢谢合作！</p>
		 <form action="" method="post" name="Integral">
      	<table width="770" border="0" cellspacing="2" cellpadding="0" class="Color666">
	      	<tr>
	        <td width="82" rowspan="2" align="center" valign="middle" bgcolor="#0D6DB7" class="ColorFFF">卡充值</td>
	        <td width="228" height="30" align="center" valign="middle" bgcolor="#E7E7E7">请在下面输入框输入您的充值号码</td>
	        <td width="258" height="30" align="center" valign="middle" bgcolor="#E7E7E7">请在下面输入框输入您的充值密码</td>
	        <td width="192" height="30" align="center" valign="middle" bgcolor="#E7E7E7">请点击下面按钮完成充值</td>
	      </tr>
	      <tr>
	        <td height="30" align="center" valign="middle" bgcolor="#E7E7E7"><input type="text"   name="number" id="number" value=""/></td>
	        <td height="30" align="center" valign="middle" bgcolor="#E7E7E7"><input type="text"   name="password" id="password" value="" /></td>
	        <td height="30" align="center" valign="middle" bgcolor="#E7E7E7">
	        <input type="button"  value="点击完成充值"  id="use_card" class="PublicPrice" style="width:120px; height:23px; padding-bottom:3px; line-height:20px; margin:0; font-size:12px;" /></td>
	      </tr>
	    </table>
		</form>
	    <div style="width:100%; clear:both; height:10px; border-bottom:1px solid #EBEBEB; margin-bottom:10px;"></div>
		<form action="user_topUp.htm" method="post" name="Pay">
	    <table width="770" border="0" cellspacing="2" cellpadding="0" class="Color666">
	      <tr>
	        <td width="83" rowspan="2" align="center" valign="middle" bgcolor="#0D6DB7" class="ColorFFF">现金充值</td>
	        <td width="487" height="30" align="left" valign="middle" bgcolor="#E7E7E7">&nbsp;&nbsp;&nbsp;&nbsp;请在下面输入框输入您的充值金额</td>
	        <td width="192" height="30" align="center" valign="middle" bgcolor="#E7E7E7">请点击下面按钮完成充值</td>
	      </tr>
	      <tr>
	        <td height="30" align="left" valign="middle" bgcolor="#E7E7E7">&nbsp;&nbsp;&nbsp;&nbsp;
	        <input type="text" name="input_charge_money" value="" />元</td>
	        <td height="30" align="center" valign="middle" bgcolor="#E7E7E7">
	        <input type="submit" value="点击完成充值" class="PublicPrice" style="width:120px; height:23px; padding-bottom:3px; line-height:20px; margin:0; font-size:12px;" /></td>
	      </tr>
	      </table>
	    </form>
      <?}?>
    </div>
    <div class="clearc"></div>
</div>
<script type="text/javascript" src="user/js/finacing.min.js?v=<?=WEB_VERSION?>"></script>
<?include('userFoot.php')?>	 
</body>
</html>
